var cubooks = (function () {
	//private
	var showFeedback = function () {
		jQuery('#feedbackBox').fadeIn();
	};
	
	var leaveFeedback = function () {
		jQuery('#leaveFeedbackBox').fadeIn();
	};
	
	// public
	return {
		showFeedback: showFeedback,
		leaveFeedback: leaveFeedback
	};
})();


jQuery(document).ready(function () {
	
	jQuery('#placebid').click(function (e) {
		jQuery(this).attr("value", "please wait...");
		jQuery(this).attr("disabled", "true");
	});
	
	jQuery('#showFeedback').click(function (e) {
		cubooks.showFeedback();
		e.preventDefault();
	});
	
	jQuery('#leaveFeedback').click(function (e) {
		cubooks.leaveFeedback();
		e.preventDefault();
	});
	
	jQuery('.password').pstrength();
	
	var end_date = jQuery('#end_date').html();
	jQuery('#defaultCountdown').countdown({until: new Date(end_date)});

});